package be.nvlooy.moviereminder.entities;

import java.util.Locale;

public enum LanguageType {
	/*
	 * IDENTIFIER ( 2 DIGIT LANGUAGE CODE )
	 */
	NL("nl"),
	EN("en");
	
	private String language;
	
	/*
	 * This constructor gets called when the Enumeration is instantiated
	 * the String-values in the parentheses are passed as a parameter
	 */
	private LanguageType(String language) {
		this.language = language;
	}
	
	/**
	 * Get a Locale instance
	 * 
	 * @return a new Locale instance from the current enumerationinstance
	 */
	public Locale getLocale() {
		return new Locale(language);
	}
}
